<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/resource/layui/css/layui.css">
<link rel="stylesheet" href="/resource/css/global.css">
<link rel="stylesheet" href="/resource/css/common.css">
<title>审核文章</title>
</head>
<body>
	<div class="layui-container">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md1"></div>
			<div class="layui-col-md10 content detail">
				<div class="fly-panel detail-box">
					<center>
						<h1>${essay.title }</h1>
					</center>
					<div class="fly-detail-info">
						<span id="validity" class="iconfont-ali icon-dengji-" title="真实度">${essay.validity }%</span>
						<span class="fly-list-nums"> <a href="#comment"> <i
								class="iconfont" title="评论">&#xe60c;</i> ${essay.commentNumber }
						</a> <i class="iconfont" title="阅读量">&#xe60b;</i> ${essay.readNumber }
						</span>
					</div>
					<div class="detail-about">
						${essay.user.userName } <a class="fly-avatar"
							href="/user/otheruserhome.do?userName=${essay.user.userName }"> <img
							<c:if test="${!empty essay.user.headSculpture }">src="${essay.user.headSculpture }"</c:if>
							<c:if test="${empty essay.user.headSculpture }">src="/resource/img/logo.JPG"</c:if>
							alt="${essay.user.userName}">
						</a>
						<div class="fly-detail-user">
							<a href="/user/otheruserhome.do?userName=${essay.user.userName }" class="fly-link"><cite></cite></a><br>
							<span>${essay.publishDate }</span>
						</div>
					</div>

					<c:if test="${!empty filelist }">
						<hr class="layui-bg-gray ">
						<c:forEach items="${filelist }" var="file">
							<div class="layui-col-md12">
								<video src="${file.filePath }" controls="controls" width="100%"
									height="300px"> 您的浏览器不支持 video 标签。 </video>
							</div>
						</c:forEach>
					</c:if>
					<hr class="layui-bg-green">
					<div class="detail-body ">
						<p>${essay.description }</p>
						<c:if test="${!empty essayFiles }">
						<p>
							<c:forEach items="${essayFiles }" var="essayFile">
								<span class="iconfont-ali ${essayFile.ext }"
									style="font-size: 30px"></span>
								<span class="fly-mid"></span>
								<span name="download" essayId="${essayFile.essayId }"
									filePath="${essayFile.filePath }">${essayFile.fileName }</span>
								<hr class="layui-bg-green">
							</c:forEach>
						</p>
						</c:if>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="layui-container" >
	  <div class="layui-row layui-col-space15">	
		 <div class="layui-col-md5"><button id="cross" class="layui-btn layui-btn-fluid"   lay-submit essayId=${essay.essayId }>通过审核</button></div>
		  <div class="layui-col-md2"> </div>
		 <div class="layui-col-md5"><button id="delete" class="layui-btn layui-btn-fluid  layui-btn-danger"   lay-submit essayId=${essay.essayId } messageId=${messageId }>敏感文章，删除</button></div>
		</div>
	</div>
	<script src="/resource/js/jquery-3.4.0.min.js"></script>
	<script src="/resource/layui/layui.js"></script>
	<script src="/resource/js/common.js"></script>
	<script src="/resource/js/auditingEssay.js"></script>
</body>
</html>